package com.designpattern.template.java8;

import java.math.BigDecimal;

public class BankBusinessSupplierHandler extends AbstractBusinessHandler {

    public void saveVip(BigDecimal amount) {
        execute(() -> "vipNumber-00" + 1, a -> System.out.println("save " + amount));
    }

    public void save(BigDecimal amount) {
        execute(() -> "number-00" + 1, a -> System.out.println("save " + amount));
    }

    public void saveReservation(BigDecimal amount) {
        execute(() -> "reservationNumber-00" + 1, a -> System.out.println("save " + amount));
    }


    public static void main(String[] args) {
        BankBusinessSupplierHandler bankBusinessSupplierHandler = new BankBusinessSupplierHandler();
        bankBusinessSupplierHandler.saveVip(new BigDecimal("1000"));
    }
}
